package com.gopay.common.domain.ep;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "EP_CARD_STATUS")
public class EpCardStatusOld extends BaseEntity {
    public static final String STATUS_NORMAL = "00";
    public static final String STATUS_FREEZE = "01";
    public static final int CERT_NO_ERR_MAX = 5;
    public static final int SMS_ERR_MAX = 5;
    public static final int PAY_ERR_MAX = 3;

	@Id
	@Column(name = "CARD_NO", nullable = false)
	private String cardNo;
	@Column(name = "STATUS", nullable = false)
	private String status;
	@Column(name = "SMS_ERR_NUM",  precision = 1, scale = 0, nullable = false)
	private Integer smsErrNum;
    @Column(name = "CERT_NO_ERR_NUM",  precision = 1, scale = 0, nullable = false)
	private Integer certNoErrNum;
    @Column(name = "PAY_ERR_NUM",  precision = 1, scale = 0, nullable = false)
	private Integer payErrNum;
    @Column(name = "LAST_UPDATE_TIME", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdateTime;
    @Column(name = "CREATE_TIME", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;
	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Integer getSmsErrNum() {
		return smsErrNum;
	}
	public void setSmsErrNum(Integer smsErrNum) {
		this.smsErrNum = smsErrNum;
	}
	public Integer getCertNoErrNum() {
		return certNoErrNum;
	}
	public void setCertNoErrNum(Integer certNoErrNum) {
		this.certNoErrNum = certNoErrNum;
	}
	public Integer getPayErrNum() {
		return payErrNum;
	}
	public void setPayErrNum(Integer payErrNum) {
		this.payErrNum = payErrNum;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
    
}
